/*
 *
 *  File: 'log.h'
 *
 *  Author: Samip Shah <samipshah@alumni.cmu.edu>
 *  Date: Nov 09, 2011
 *
 */
#include <stdarg.h>
#include <fstream>

namespace Debug {

class DebugFile {
  std::ofstream file;
  public:
  DebugFile() {
    file.open("debug.log");
  }
  ~DebugFile() {
    file.close();
  }
  template<typename T>
  void operator<<(T& t) {
    file << t;
  }
};

}
